package com.auxgroup.smarthome.enterpriseapi.responsebody;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 直接返回json 不要实体
 * Created by robo on 2017/3/9.
 */
public class DeviceConnDura {

    private DeviceModel _$1_month_above;
    private DeviceModel _$1_month;
    private DeviceModel _$8_hour;
    private DeviceModel _$1_hour;
    private DeviceModel _$1_day;
    private DeviceModel _$5_day;
    private HourModel online_range;
    @JSONField(name ="1_month_above")
    public DeviceModel get_$1_month_above() {
        return _$1_month_above;
    }
    @JSONField(name ="1_month_above")

    public void set_$1_month_above(DeviceModel _$1_month_above) {
        this._$1_month_above = _$1_month_above;
    }
    @JSONField(name ="1_month")

    public DeviceModel get_$1_month() {
        return _$1_month;
    }
    @JSONField(name ="1_month_above")

    public void set_$1_month(DeviceModel _$1_month) {
        this._$1_month = _$1_month;
    }
    @JSONField(name ="8_hour")

    public DeviceModel get_$8_hour() {
        return _$8_hour;
    }
    @JSONField(name ="8_hour")

    public void set_$8_hour(DeviceModel _$8_hour) {
        this._$8_hour = _$8_hour;
    }
    @JSONField(name ="1_hour")

    public DeviceModel get_$1_hour() {
        return _$1_hour;
    }
    @JSONField(name ="1_hour")

    public void set_$1_hour(DeviceModel _$1_hour) {
        this._$1_hour = _$1_hour;
    }
    @JSONField(name ="1_day")

    public DeviceModel get_$1_day() {
        return _$1_day;
    }
    @JSONField(name ="1_day")

    public void set_$1_day(DeviceModel _$1_day) {
        this._$1_day = _$1_day;
    }
    @JSONField(name ="5_day")

    public DeviceModel get_$5_day() {
        return _$5_day;
    }
    @JSONField(name ="5_day")

    public void set_$5_day(DeviceModel _$5_day) {
        this._$5_day = _$5_day;
    }

    public HourModel getOnline_range() {
        return online_range;
    }

    public void setOnline_range(HourModel online_range) {
        this.online_range = online_range;
    }

    public static class HourModel {

        private double _$0;
        private double _$1;
        private double _$2;
        private double _$3;
        private double _$4;
        private double _$5;
        private double _$6;
        private double _$7;
        private double _$8;
        private double _$9;
        private double _$10;
        private double _$11;
        private double _$12;
        private double _$13;
        private double _$14;
        private double _$15;
        private double _$16;
        private double _$17;
        private double _$18;
        private double _$19;
        private double _$20;
        private double _$21;
        private double _$22;
        private double _$23;
        @JSONField(name ="0")
        public double get_$0() {
            return _$0;
        }
        @JSONField(name ="0")
        public void set_$0(double _$0) {
            this._$0 = _$0;
        }
        @JSONField(name ="1")
        public double get_$1() {
            return _$1;
        }
        @JSONField(name ="1")
        public void set_$1(double _$1) {
            this._$1 = _$1;
        }
        @JSONField(name ="2")
        public double get_$2() {
            return _$2;
        }
        @JSONField(name ="2")
        public void set_$2(double _$2) {
            this._$2 = _$2;
        }
        @JSONField(name ="3")
        public double get_$3() {
            return _$3;
        }
        @JSONField(name ="3")
        public void set_$3(double _$3) {
            this._$3 = _$3;
        }
        @JSONField(name ="4")
        public double get_$4() {
            return _$4;
        }
        @JSONField(name ="4")
        public void set_$4(double _$4) {
            this._$4 = _$4;
        }
        @JSONField(name ="5")
        public double get_$5() {
            return _$5;
        }
        @JSONField(name ="5")
        public void set_$5(double _$5) {
            this._$5 = _$5;
        }
        @JSONField(name ="6")
        public double get_$6() {
            return _$6;
        }
        @JSONField(name ="6")
        public void set_$6(double _$6) {
            this._$6 = _$6;
        }
        @JSONField(name ="7")
        public double get_$7() {
            return _$7;
        }
        @JSONField(name ="7")
        public void set_$7(double _$7) {
            this._$7 = _$7;
        }
        @JSONField(name ="8")
        public double get_$8() {
            return _$8;
        }
        @JSONField(name ="8")
        public void set_$8(double _$8) {
            this._$8 = _$8;
        }
        @JSONField(name ="9")
        public double get_$9() {
            return _$9;
        }
        @JSONField(name ="9")
        public void set_$9(double _$9) {
            this._$9 = _$9;
        }
        @JSONField(name ="10")
        public double get_$10() {
            return _$10;
        }
        @JSONField(name ="10")
        public void set_$10(double _$10) {
            this._$10 = _$10;
        }
        @JSONField(name ="11")
        public double get_$11() {
            return _$11;
        }
        @JSONField(name ="11")
        public void set_$11(double _$11) {
            this._$11 = _$11;
        }
        @JSONField(name ="12")
        public double get_$12() {
            return _$12;
        }
        @JSONField(name ="12")
        public void set_$12(double _$12) {
            this._$12 = _$12;
        }
        @JSONField(name ="13")
        public double get_$13() {
            return _$13;
        }
        @JSONField(name ="13")
        public void set_$13(double _$13) {
            this._$13 = _$13;
        }
        @JSONField(name ="14")
        public double get_$14() {
            return _$14;
        }
        @JSONField(name ="14")
        public void set_$14(double _$14) {
            this._$14 = _$14;
        }
        @JSONField(name ="15")
        public double get_$15() {
            return _$15;
        }
        @JSONField(name ="15")
        public void set_$15(double _$15) {
            this._$15 = _$15;
        }
        @JSONField(name ="16")
        public double get_$16() {
            return _$16;
        }
        @JSONField(name ="16")
        public void set_$16(double _$16) {
            this._$16 = _$16;
        }
        @JSONField(name ="17")
        public double get_$17() {
            return _$17;
        }
        @JSONField(name ="17")
        public void set_$17(double _$17) {
            this._$17 = _$17;
        }
        @JSONField(name ="18")
        public double get_$18() {
            return _$18;
        }
        @JSONField(name ="18")
        public void set_$18(double _$18) {
            this._$18 = _$18;
        }
        @JSONField(name ="19")
        public double get_$19() {
            return _$19;
        }
        @JSONField(name ="19")
        public void set_$19(double _$19) {
            this._$19 = _$19;
        }
        @JSONField(name ="20")
        public double get_$20() {
            return _$20;
        }
        @JSONField(name ="20")
        public void set_$20(double _$20) {
            this._$20 = _$20;
        }
        @JSONField(name ="21")
        public double get_$21() {
            return _$21;
        }
        @JSONField(name ="21")
        public void set_$21(double _$21) {
            this._$21 = _$21;
        }
        @JSONField(name ="22")
        public double get_$22() {
            return _$22;
        }
        @JSONField(name ="22")
        public void set_$22(double _$22) {
            this._$22 = _$22;
        }
        @JSONField(name ="23")
        public double get_$23() {
            return _$23;
        }
        @JSONField(name ="23")
        public void set_$23(double _$23) {
            this._$23 = _$23;
        }

    }

    public static class DeviceModel {

        private int count;
        private int device;
        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getDevice() {
            return device;
        }

        public void setDevice(int device) {
            this.device = device;
        }

    }

    private String error_message;

    private String error_code;

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public DeviceConnDura createErrorMsg(String error_message, String error_code){
        this.error_message = error_message;
        this.error_code = error_code;
        return this;
    }
}
